home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000182_fdc@watsun.cc.columbia.edu_Thu May 24 13:57:29 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  4KB  |  97 lines

  1. Article: 12483 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
  3. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: zmodem problem
  6. Date: 24 May 2001 17:57:20 GMT
  7. Organization: Columbia University
  8. Lines: 80
  9. Message-ID: <9eji20$kjo$1@newsmaster.cc.columbia.edu>
  10. References: <vOyO6.2574$gA.1009512@monger.newsread.com> <9eeitl$flc$1@newsmaster.cc.columbia.edu> <tibP6.3057$gA.1129282@monger.newsread.com>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 990727040 21112 128.59.39.2 (24 May 2001 17:57:20 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 24 May 2001 17:57:20 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12483
  16.  
  17. In article <tibP6.3057$gA.1129282@monger.newsread.com>,
  18. Glenn Sherman <gsherman@remove_this.m20.net> wrote:
  19. : "Frank da Cruz" <fdc@watsun.cc.columbia.edu> wrote in message
  20. : news:9eeitl$flc$1@newsmaster.cc.columbia.edu...
  21. : > In article <vOyO6.2574$gA.1009512@monger.newsread.com>,
  22. : > Glenn Sherman <gsherman@remove_this.m20.net> wrote:
  23. : > : Begin Xfer file1.txtRetry 0: Awaiting pathname nak for file1.txt
  24. : > :   0 ZMODEM  A serial connection might still be active on /dev/ser2.
  25. : > : OK to exit? ok
  26. : > : I know what the active serial connection warning is...
  27. : > :
  28. : > In case others don't, it's because the SEND command completed, and the
  29. : > next command is EXIT.  Normally you'd want to put IF FAIL after the SEND
  30. : > command so you could take some kind of error recovery or notification
  31. : > action.
  32. : OK, I thought I could fix the active serial connection message, but...
  33. : ----- here is part of my script ------------------------------------
  34. : input 20 OTTI.PCS                       ; get transmit prompt
  35. : if fail exit 1 No transmit prompt
  36. : sleep 2
  37. : cd /tmp
  38. : send perrotti.pcs                       ; send price file
  39. : if fail exit 1 Couldn't send file
  40. : sleep 2
  41. : echo
  42. : echo Hanging up the modem connection...
  43. : hangup
  44. : sleep 10
  45. : echo Exiting the script!
  46. : exit 0
  47. : ----- here are the results ---------------------------------------
  48. : Begin Xfer PERROTTI.PCSRetry 0: Awaiting pathname nak for perrotti.pcs
  49. :       0 ZMODEM
  50. : Hanging up the modem connection...
  51. : Exiting the script!
  52. :  A serial connection might still be active on /dev/ser2.
  53. : OK to exit? ok
  54. : #
  55. : ---------------------------
  56. : The receiving computer is waiting for another file to be sent using zmodem.
  57. : I do not have the second file to send, and their instructions say that I can
  58. : just disconnect after the first file is sent.
  59. : ---------------------------
  60. : Is hangup the right command to use? Should I be waiting longer?
  61. It's the right command to use.  It tells the modem to hang up the phone.
  62. If the modem is configured correctly, it should respond to the HANGUP
  63. command by (a) hanging up the phone, and (b) turning off its CD (Carrier
  64. Detect) signal.  But (b) is not happening, which is why Kermit is giving
  65. you the warning.  Why is (b) not happening?
  66.  
  67.  . Because (a) is not happening; or:
  68.  . Because the modem is configured to keep CD On all the time; or:
  69.  . (not likely) Because you have CD and DTR jumpered in your modem cable; or:
  70.  . Because the operating system is reporting CD On when it's really Off.
  71.  
  72. The main thing is to make sure the phone connection is really being hung up.
  73. If it isn't, you could get a big phone bill.  Some useful Kermit commands:
  74.  
  75.   SET DIAL DISPLAY ON
  76.     Shows interactions between Kermit and the modem.
  77.  
  78.   SHOW COMMUNICATIONS
  79.     Displays the current modem signals.
  80.  
  81.   SET MODEM HANGUP-METHOD { RS232, MODEM-COMMAND }
  82.     Chooses which technique is to be used for hanging up the modem.
  83.  
  84. If you're sure the modem is being hung up, but you're still getting the
  85. "OK to exit?" question, you can get rid of it with:
  86.  
  87.   SET EXIT WARNING OFF
  88.  
  89. - Frank
  90.